package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Travel;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;


//旅游日记
public interface TravelRepsitory extends MongoRepository<Travel,String> {

    /**
     * 通过目的地id和分页排序查询出游记
     * @param destId
     * @param pageable
     * @return
     */
    List<Travel> findByDestId(String destId, Pageable pageable);
}

